#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;

class Solution {
public:
    int maxVowels(string s, int k)
    {
        int ret = 0;
        int mid = 0;
        for (int i = 0; i < s.size(); i++)
        {
            if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u')
                mid++;
            if (i < k - 1)
                continue;
            ret = max(ret, mid);
            char out = s[i - k + 1];
            if (out == 'a' || out == 'e' || out == 'i' || out == 'o' || out == 'u')
                mid--;
        }
        return ret;
    }
};